<%@ taglib prefix="s" uri="/struts-tags" %>

  <jsp:include page="/pages/header.jsp" flush="true"/>
   
    <s:form action="savePerson">
    
    	<s:textfield name="name" label="Name" maxlength="8" required="true"/>
    	<s:textfield name="password" label="Password" required="true"/>

<!--    	<s:checkboxlist name="profiles" list="profiles" listKey="id" listValue="name" value="Profiles"/>-->
    	
    	<s:checkboxlist name="checkedProfiles"
                    list="profiles"
                    listKey="id"
                    listValue="name"
                    label="Profiles"
                    value="checkedProfiles"
                    />
  
    	<s:submit value="Create Person"></s:submit>
    </s:form>
    
    
  <%="</body>"%>
<%="</html>"%>